package cn.xuan.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class BaseJob implements Job {
	
	private static final Logger logger = LoggerFactory.getLogger(BaseJob.class);

	@Override
	public void execute(JobExecutionContext jobContext) throws JobExecutionException {
		this.execute();
	}
	
	public void execute() throws JobExecutionException {
		logger.info("BaseJob.execute");
		this.run();
	}
	public abstract void run();
}
